package com.sun.services.users;
import cn.dev33.satoken.util.SaResult;
import com.sun.dto.PagedList;
import com.sun.dto.users.UserSearchDto;
import com.sun.entity.users.User;
import java.util.List;
/**
 * 用户服务接口，定义用户相关的业务方法
 */
public interface UserService {
    SaResult login(String username, String password);
    SaResult ReloadUserRole(Long id);
    SaResult createUser(User user);

    SaResult DeleteUser(List<Long> ids);
    SaResult UpdateUser(User user);
    List<User> getUserList(UserSearchDto userSearchDto);
    PagedList<User> getUserPageList(UserSearchDto userSearchDto);
}
